package com.zbkj.common.request.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @Auther:
 * @Date: 2024/7/5 15:08
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ClientUserLoginRequest对象", description = "客户端用户登录请求对象")
public class ClientUserLoginRequest implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户手机号")
    @NotBlank(message = "用户手机号不能为空")
    private String account;

    @ApiModelProperty(value = "用户登录密码")
    @NotBlank(message = "登录密码不能为空")
    private String pwd;

    @ApiModelProperty(value = "验证码key", required = true)
    @NotBlank(message = "缺少验证码key")
    private String key;

    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "验证码不能为空")
    private String code;
}
